﻿<UserControl x:Class="VAdvantage.Apps.AForms.VAllocation"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="395" d:DesignWidth="747" xmlns:my="clr-namespace:SLControls.Controls;assembly=SLControls" xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit" xmlns:my1="clr-namespace:System.Windows.Controls.DataVisualization.Charting.Primitives;assembly=System.Windows.Controls.DataVisualization.Toolkit" xmlns:my2="clr-namespace:VAdvantage.Controls" HorizontalContentAlignment="Stretch">
    <Grid>
    <Grid x:Name="LayoutRoot" Background="White" Height="Auto" Width="Auto">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="*" />
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="*" />
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="Auto" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
            <Border Grid.Column="0" Grid.ColumnSpan="8" Grid.Row="0" Grid.RowSpan="1" BorderThickness="0.8" BorderBrush="#BDAAB1B1" Margin="5,5,5,5">
                <Grid Grid.Column="0" Grid.ColumnSpan="8" Grid.Row="0" Grid.RowSpan="1" Margin="5,5,5,5" Name="vdgvInnerGrid" >
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="Auto" />
            </Grid.ColumnDefinitions>
            <my:VLabel Height="Auto" HorizontalAlignment="Stretch" Name="vlblBusinessPartner" Content="Business Partner" VerticalAlignment="Stretch" Margin="0,0,5,0" HorizontalContentAlignment="Right" Grid.Column="0" Width="Auto" Grid.RowSpan="1" />
            <my:VLabel Grid.Column="4" Height="Auto" HorizontalAlignment="Stretch" Name="vlblDate" VerticalAlignment="Stretch" Width="Auto" Content="Date" Margin="5,0,5,0" Grid.RowSpan="1" HorizontalContentAlignment="Right" Grid.ColumnSpan="1" />
            <my:VLabel Grid.Column="2" Grid.Row="0" Height="Auto" HorizontalAlignment="Stretch" Name="vlblCurrency" VerticalAlignment="Stretch" Width="Auto" Content="Currency" HorizontalContentAlignment="Right" Margin="5,0,5,0" />
            <my:VCheckBox Content="Multi-Currency" Grid.Column="6" Grid.Row="0" Height="Auto" HorizontalAlignment="Stretch" Name="vchkMultiCurrency" VerticalAlignment="Center" Width="Auto" VerticalContentAlignment="Top" Click="vchkMultiCurrency_Click" Padding="4,0,0,0" Margin="0,0,5,0" />
            <my:VCheckBox Content="Cash Allocation" Grid.Column="7" Grid.Row="0" Height="Auto" HorizontalAlignment="Stretch" Name="vchkAllocation" VerticalAlignment="Center" Click="vchkAllocation_Click" Padding="4,0,0,0" Margin="0,0,5,0" />
            <my:VDateTimePicker Grid.Column="5" HorizontalAlignment="Stretch" Margin="0,0,5,0" Name="vdtpDateField" VerticalAlignment="Center" Height="Auto" Grid.ColumnSpan="1" HorizontalContentAlignment="Center" />
        </Grid>
            </Border>
            <my:VLabel Grid.Row="2" Height="15" HorizontalAlignment="Left" Name="vlblPayment" VerticalAlignment="Top" Width="75" Content="Payment" Grid.ColumnSpan="2" Margin="5,0,2,0" />
        <my:VLabel Grid.Row="5" Height="15" HorizontalAlignment="Left" Name="vlblCashLines" VerticalAlignment="Top" Width="75" Content="Cash Lines" Grid.ColumnSpan="2" Margin="5,0,2,0" />
        <my:VLabel Grid.Row="8" Height="Auto" HorizontalAlignment="Stretch" Name="vlblInvoice" VerticalAlignment="Stretch" Width="Auto" Content="Invoice" Grid.ColumnSpan="1" Margin="5,0,2,0" />
        <my:VLabel Grid.Column="7" Grid.Row="4" Height="15" HorizontalAlignment="Right" Name="vlblPaySum" VerticalAlignment="Top" Width="Auto" Content="0-Sum 0.00" Margin="2,0,8,0" />
        <my:VLabel Grid.Column="7" Grid.Row="7" Height="16" HorizontalAlignment="Right" Name="vlblCashSum" VerticalAlignment="Top" Width="Auto" Content="0-Sum 0.00" Margin="2,0,8,0" />
       
        <my:VDataGrid AutoGenerateColumns="False" Grid.Row="3" Height="Auto" HorizontalAlignment="Stretch" Name="vdgvPayment" VerticalAlignment="Stretch" Grid.ColumnSpan="8" HorizontalContentAlignment="Stretch" CellEditEnded="vdgvPayment_CellEditEnded" VerticalContentAlignment="Stretch" ColumnWidth="*" Margin="5,0" />
        <my:VDataGrid AutoGenerateColumns="False" Grid.ColumnSpan="8" Grid.Row="6" Height="Auto" HorizontalAlignment="Stretch" Name="vdgvCashLine" VerticalAlignment="Stretch" HorizontalContentAlignment="Stretch" CellEditEnded="vdgvCashLine_CellEditEnded" ColumnWidth="*" SelectionChanged="vdgvCashLine_SelectionChanged" Margin="5,0" />
        <my:VDataGrid AutoGenerateColumns="False" Grid.ColumnSpan="8" Grid.Row="9" Height="Auto" HorizontalAlignment="Stretch" Name="vdgvInvoice" VerticalAlignment="Stretch" Margin="5,0" HorizontalContentAlignment="Stretch" Grid.RowSpan="1" CellEditEnded="vdgvInvoice_CellEditEnded" ColumnWidth="*" SelectionChanged="vdgvInvoice_SelectionChanged" />
        <my:VLabel Content="0-Sum 0.00" Height="15" HorizontalAlignment="Right" Name="vlblInvSum" VerticalAlignment="Top" Width="Auto" Grid.Column="7" Grid.Row="10" Margin="0,0,8,0" />
        <my:VLabel Grid.Row="11" Height="22" Margin="8,5,35,8" Name="vlblDifference" VerticalAlignment="Stretch" Content="Difference" Grid.Column="0" HorizontalContentAlignment="Right" />
        <my:VCheckBox Content="AutoMatic Write-Off" Grid.Column="6" Grid.Row="11" Height="23" HorizontalAlignment="Center" Margin="0,8,0,6" Name="vchkAutoWriteOff" VerticalAlignment="Stretch" Grid.ColumnSpan="1" VerticalContentAlignment="Stretch" UseLayoutRounding="False" Padding="0,0,0,0" />
        <my:VLabel Grid.Column="0" Grid.Row="11" Height="25" HorizontalAlignment="Stretch" Margin="8,5,0,8" Name="vlblAllocCurrency" VerticalAlignment="Center" Content="USD" HorizontalContentAlignment="Right" />
        
        <my:VTextBox Grid.ColumnSpan="2" Height="23" HorizontalAlignment="Left" Name="vtxtDifference" VerticalAlignment="Stretch" Width="140" Grid.Column="1" Grid.Row="11" IsEnabled="False" Margin="5,4,0,8" />
        <toolkit:SeriesDefinition HorizontalAlignment="Left" Margin="10,10,0,0" Name="seriesDefinition1" VerticalAlignment="Top" />
        <my:VImage Content="Process" Grid.Column="7" Grid.Row="11" Height="23" HorizontalAlignment="Right" Margin="5,5,5,8" Name="vbtnAllocate" VerticalAlignment="Stretch" Width="75" />
    </Grid>
        <Grid x:Name="busyWindow" Opacity=".4" Background="LightGray" Visibility="Collapsed" MouseLeftButtonDown="busyWindow_MouseLeftButtonDown" >
            <TextBlock x:Name="txtBusy" FontSize="20" FontStyle="Italic" Visibility="Collapsed" HorizontalAlignment="Center" Text="Loading...." VerticalAlignment="Center"></TextBlock>
        </Grid>
</Grid>
</UserControl>
